const audioCtx=wx.createWebAudioContext();
const api=require('../../api/index');
Page({
  data: {
    jxwLeft: 230 ,// 初始值设为窗口宽度的一半
    venueData:[],
    myTitle:"",
    myJxw:""
  },
  showMsg() {
    console.log("点击");
  },
  onReady(){
    wx.request({
      url: 'http://192.168.0.47/getsite',
      success:(data)=>{
        console.log(data.data.data);
        this.setData({
          venueData:data.data.data
        })
      }
    });
    wx.request({
      url: 'http://192.168.0.47/my_value',
      data: {
        my_key: 'index_标题'
      },
      success:(data)=>{
        console.log(data.data.data);
        this.setData({
          myTitle:data.data.data[0].my_value
        })
      }
    })
  },
  onShow(){
    api.getMsg().then(data=>
      console.log(data)
      );
  },
  jumpTo(){
    wx.navigateTo({
      url: '/secondary_page/vebue_details/vebue_details',
    })
  },
  
 
});